-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix flaky tests by disabling automatic plugin acquisition for all tests #2190
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2190 +/- ##
==========================================
- Coverage 60.74% 60.62% -0.13%
==========================================
Files 353 355 +2
Lines 46146 46311 +165
==========================================
+ Hits 28032 28076 +44
- Misses 16559 16678 +119
- Partials 1555 1557 +2 ☔ View full report in Codecov by Sentry. |
This might be hitting API rate limits again: pulumi plugin install converter terraform 1.0.18 exit status 255 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It needs an export PULUMI_DISABLE_AUTOMATIC_PLUGIN_ACQUISITION
in the Makefiles to the Make variable is exposed in the shell. Otherwise LGTM.
Running out of ideas on how to fix TestAccProviderConfig - looks like a problem with directories/PATH? Where are the pulumi plugins installed and why can't the test find them? |
Does the test failure replicate locally? |
b4b2f9e
to
38af1aa
Compare
This doesn't appear to be necessary for Mac and Linux, but it does appear necessary for Windows.
aef5ea7
to
186b824
Compare
This PR has been shipped in release v3.88.0. |
Disable automatic acquisition globally in the repository - this should ensure we do not use the GH API during tests and make our tests here a lot more robust.
Instead manually install all required plugins in the Makefile as a dependency of the tests. This ensures we only do it once and do not spam the GH API with redundant requests causing test flakes.
I've hit this more than 5 times on separate PRs in the last few days. It's seriously slowing down progress in the repo.
When we do hit the GH rate limit, we have to wait for up to an hour for it to reset.
SkipTestConvertViaPulumiCLI
until pulumi/pulumi#16469 is addressed.SkipTestResourceWithoutID
until #2191 is addressed.Looks like we were using the wrong env variable name...
One of the tests was also absolutely spamming the GH API: https://github.com/pulumi/pulumi-terraform-bridge/actions/runs/9973182117/job/27557985796?pr=2190
Latest failures: https://github.com/pulumi/pulumi-terraform-bridge/actions/runs/9972810153/job/27556840950?pr=2186
fixes #2191